package com.aspose.cells.a.d;

import com.aspose.cells.DateTime;
import com.aspose.cells.Encoding;

public class zfd extends zef {
   private zeh a;
   private byte[] b;
   private com.aspose.cells.b.a.d.zh c;

   public zfd(zdh var1, zeh var2) throws Exception {
      super(var1);
      this.a = var2;
      this.b = new byte[1500];
      this.c = new com.aspose.cells.b.a.d.zh(this.b);
      this.c.b(0L);
      if (!DateTime.a(this.a.f(), DateTime.a)) {
         String var3 = "<?xpacket begin=\"";
         this.c.b(Encoding.getASCII().a(var3), 0, var3.length());
         this.c.a((byte)-17);
         this.c.a((byte)-69);
         this.c.a((byte)-65);
         var3 = "\" id=\"W5M0MpCehiHzreSzNTczkc9d\"?><x:xmpmeta xmlns:x=\"adobe:ns:meta/\" x:xmptk=\"Aspose.Cells\"><rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">";
         var3 = var3 + "<rdf:Description rdf:about=\"\" xmlns:xmp=\"http://ns.adobe.com/xap/1.0/\"><xmp:CreateDate>XMPCREATEDATE</xmp:CreateDate><xmp:ModifyDate>XMPCREATEDATE</xmp:ModifyDate>";
         var3 = var3 + "<xmp:CreatorTool>Aspose.Cells</xmp:CreatorTool></rdf:Description><rdf:Description rdf:about=\"\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\">";
         var3 = var3 + "<dc:format>application/pdf</dc:format><dc:title><rdf:Alt><rdf:li xml:lang=\"x-default\">XMPTITLE</rdf:li></rdf:Alt></dc:title><dc:creator><rdf:Seq><rdf:li>XMPAUTHOR</rdf:li>";
         var3 = var3 + "</rdf:Seq></dc:creator><dc:description><rdf:Alt><rdf:li xml:lang=\"x-default\">XMPSUBJECT</rdf:li></rdf:Alt></dc:description></rdf:Description><rdf:Description rdf:about=\"\" xmlns:pdf=\"http://ns.adobe.com/pdf/1.3/\"><pdf:Producer>XMPPRODUCER</pdf:Producer><pdf:Keywords>XMPKEYWORDS</pdf:Keywords>";
         var3 = var3 + "</rdf:Description><rdf:Description rdf:about=\"\" xmlns:pdfaid=\"http://www.aiim.org/pdfa/ns/id/\"><pdfaid:part>1</pdfaid:part><pdfaid:conformance>B</pdfaid:conformance>";
         var3 = var3 + "</rdf:Description></rdf:RDF></x:xmpmeta><?xpacket end=\"w\"?>";
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPCREATEDATE", com.aspose.cells.a.c.zp.a(this.a.f()));
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPPRODUCER", this.a.g());
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPAUTHOR", this.a.c());
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPTITLE", this.a.b());
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPSUBJECT", this.a.d());
         var3 = com.aspose.cells.b.a.zv.a(var3, "XMPKEYWORDS", this.a.e());
         this.c.b(Encoding.getASCII().a(var3), 0, var3.length());
      }
   }

   public void a(zeg var1) throws Exception {
      var1.a(this);
      var1.g();
      var1.a("/Type", "/Metadata");
      var1.a("/Subtype", "/XML");
      var1.a("/Length", (float)this.c.i());
      var1.h();
      var1.a("stream\r\n");
      var1.a(this.b, 0, (int)this.c.i());
      var1.a("\r\nendstream\r\n");
      var1.b();
   }
}
